from rest_framework import serializers
from .models import Account


class RegisterSerializer(serializers.ModelSerializer):
    create_time = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', default=None)
    update_time = serializers.DateTimeField(format='%Y-%m-%d %H:%M:%S', default=None)

    class Meta:
        model = Account
        fields = "__all__"
